package com.powerwyx.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.powerwyx.apicommon.model.entity.InterfaceInfo;
import com.powerwyx.project.common.IdRequest;
import com.powerwyx.project.model.dto.interfaceInfo.InterfaceInfoInvokeRequest;

import javax.servlet.http.HttpServletRequest;

/**
* @author 17585
* @description 针对表【interface_info】的数据库操作Service
* @createDate 2024-07-29 21:18:56
*/
public interface InterfaceInfoService extends IService<InterfaceInfo> {
    /**
     * 校验
     *
     * @param interfaceInfo
     * @param add 是否为创建校验
     */
    void validInterfaceInfo(InterfaceInfo interfaceInfo, boolean add);


    /**
     * 发布接口
     */
    void onlineInterfaceInfo(IdRequest idRequest);


    /**
     * 下线接口
     * @param idRequest
     */
    void offlineInterfaceInfo(IdRequest idRequest);

    /**
     * 测试调用接口
     * @param interfaceInfoInvokeRequest
     */
    String InterfaceInfoInvoke(InterfaceInfoInvokeRequest interfaceInfoInvokeRequest, HttpServletRequest request);
}
